Skip to content

Fix: removes app sessions from interactive session listing#331

Open
l-mansouri wants to merge 3 commits into
mainfrom
app-session-tmp-fix
Open

Fix: removes app sessions from interactive session listing#331
l-mansouri wants to merge 3 commits into
mainfrom
app-session-tmp-fix

Conversation

@l-mansouri

Copy link
Copy Markdown
Collaborator

Overview

This PR removes app sessions from the list of interactive session.

JIRA

Please add here as many related tasks this PR covers with its brief description, if more than one ticket

Changes

  • Refactors the listing of interactive session to filter out app sessions

Tests

BEFORE

Screenshot 2026-06-12 at 15 56 03

AFTER

Screenshot 2026-06-12 at 15 55 46

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the interactive-session listing to hide “app sessions” (e.g., awsCustomSession, azureCustomSession) from CLI output, and records the fix via version/changelog updates.

Changes:

  • Adds an app-session type constant and filters these session types out in interactive-session list.
  • Extends session-type display mapping to include app-session types.
  • Adds tests and bumps version/changelog for the fix.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 4 comments.

Show a summary per file
File Description
cloudos_cli/interactive_session/cli.py Applies client-side filtering to remove app sessions from the list output.
cloudos_cli/interactive_session/interactive_session.py Introduces _APP_SESSION_TYPES and maps app session types to a friendly label.
tests/test_interactive_session/test_list_sessions.py Adds tests intended to validate app-session filtering behavior.
cloudos_cli/_version.py Bumps package version.
CHANGELOG.md Adds a changelog entry describing the fix.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment thread cloudos_cli/interactive_session/cli.py Outdated
Comment thread cloudos_cli/interactive_session/interactive_session.py Outdated
Comment thread tests/test_interactive_session/test_list_sessions.py Outdated
Comment thread tests/test_interactive_session/test_list_sessions.py Outdated

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Copilot reviewed 5 out of 5 changed files in this pull request and generated no new comments.

Comments suppressed due to low confidence (1)

cloudos_cli/interactive_session/cli.py:214

  • Client-side filtering can leave sessions empty for the requested page even when later pages contain non-app sessions. In stdout mode this currently results in create_interactive_session_list_table([]) returning early, which prevents the user from navigating to next/prev pages and effectively hides sessions that should still be visible.
        sessions = [s for s in sessions if s.get('interactiveSessionType') not in APP_SESSION_TYPES]

        # Handle empty results
        if len(sessions) == 0:
            if filter_status:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants